home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
Borland Visual dBASE Professiona v7.0
/
DATA1.CAB
/
Sample_dBASE
/
Fleet
/
Aircraft.rep
< prev
next >
Wrap
Text File
|
1997-11-20
|
7KB
|
261 lines
//--------------------------------------------------------------
//
// Aircraft.rep -- Aircraft Report
//
// This report displays the schedule in groups by aircraft.
//
// Dependencies: BWA.CRP
// SCHEDULE.DBF
// AIRCRAFT.DBF
//
// Visual dBASE Samples Group
//
// $Revision: 1.4 $
//
// Copyright (c) 1997, Borland International, Inc.
// All rights reserved.
//
//---------------------------------------------------------------
SET TALK OFF
** END HEADER -- do not remove this line
//
// Generated on 10/10/97
//
local r
r = new AircraftReport()
r.render()
class AircraftReport of BWAREPORT from "bwa.crp"
with (this)
title = "Schedule by Aircraft"
metric = 3
autoSort = false
scaleFontBold = false
endwith
this.AIRCRAFT1 = new QUERY()
this.AIRCRAFT1.parent = this
with (this.AIRCRAFT1)
left = 0.5
top = 0
database = form.DMCONNECT.ref.dbfleet
sql = 'SELECT Schedule."Flight ID", Schedule."Flight Date", Aircraft."Aircraft ID", Aircraft.MAKE, Aircraft.MODEL, Aircraft.Passengers FROM "aircraft.dbf" Aircraft INNER JOIN "schedule.dbf" Schedule ON (Aircraft."Aircraft ID" = Schedule."Aircraft ID") ORDER BY aircraft."Aircraft ID", Schedule."Flight Date"'
requestLive = false
active = true
endwith
with (this.printer)
duplex = 1
orientation = 1
paperSource = 15
paperSize = 1
resolution = 4
color = 2
trueTypeFonts = 2
endwith
this.STREAMSOURCE1 = new STREAMSOURCE(this)
this.STREAMSOURCE1.GROUP1 = new GROUP(this.STREAMSOURCE1)
with (this.STREAMSOURCE1.GROUP1)
groupBy = "AIRCRAFTID"
endwith
with (this.STREAMSOURCE1.GROUP1.headerBand)
expandable = false
height = 0.5
endwith
this.STREAMSOURCE1.GROUP1.headerBand.LABELAIRCRAFTID = new TEXT(this.STREAMSOURCE1.GROUP1.headerBand)
with (this.STREAMSOURCE1.GROUP1.headerBand.LABELAIRCRAFTID)
height = 0.15
top = 0.1
width = 0.7
metric = 3
colorNormal = "darkblue"
fontSize = 9
text = "<H4>Aircraft ID:</H4>"
endwith
this.STREAMSOURCE1.GROUP1.headerBand.VALUEAIRCRAFTID = new TEXT(this.STREAMSOURCE1.GROUP1.headerBand)
with (this.STREAMSOURCE1.GROUP1.headerBand.VALUEAIRCRAFTID)
height = 0.15
left = 0.75
top = 0.1
width = 0.5
metric = 3
colorNormal = "darkblue"
fontSize = 9
text = {||"<H4> " + this.parent.parent.parent.rowset.fields["Aircraft ID"].value + "</H4>"}
endwith
this.STREAMSOURCE1.GROUP1.headerBand.TEXTMODEL = new TEXT(this.STREAMSOURCE1.GROUP1.headerBand)
with (this.STREAMSOURCE1.GROUP1.headerBand.TEXTMODEL)
height = 0.15
left = 1.75
top = 0.3
width = 1.5
metric = 3
variableHeight = true
colorNormal = "darkblue"
fontSize = 9
text = {||"<h4>Model: " + this.form.form.aircraft1.rowset.fields["MODEL"].value+"</h4>"}
endwith
this.STREAMSOURCE1.GROUP1.headerBand.TEXTDEPARTS1 = new TEXT(this.STREAMSOURCE1.GROUP1.headerBand)
with (this.STREAMSOURCE1.GROUP1.headerBand.TEXTDEPARTS1)
height = 0.15
top = 0.3
width = 1.5
metric = 3
variableHeight = true
colorNormal = "darkblue"
fontSize = 9
text = {||"<h4>Make: " + this.form.form.aircraft1.rowset.fields["MAKE"].value + "</h4>"}
endwith
with (this.STREAMSOURCE1.GROUP1.footerBand)
height = 1
endwith
this.STREAMSOURCE1.detailBand.TITLETEXTFLIGHTDATE1 = new TEXT(this.STREAMSOURCE1.detailBand)
with (this.STREAMSOURCE1.detailBand.TITLETEXTFLIGHTDATE1)
canRender = {||this.parent.firstOnFrame}
height = 0.15
left = 0.1771
top = 0.0083
width = 1
metric = 3
colorNormal = "BtnText"
alignHorizontal = 1
suppressIfBlank = true
fontSize = 9
fontBold = true
fontUnderline = true
text = "Date"
endwith
this.STREAMSOURCE1.detailBand.TEXTFLIGHTDATE1 = new TEXT(this.STREAMSOURCE1.detailBand)
with (this.STREAMSOURCE1.detailBand.TEXTFLIGHTDATE1)
height = 0.12
left = 0.25
top = 0.2
width = 1
metric = 3
variableHeight = true
colorNormal = "BtnText"
alignHorizontal = 1
fontSize = 9
text = {||this.form.aircraft1.rowset.fields["Flight Date"].value}
endwith
this.STREAMSOURCE1.detailBand.TITLETEXTAIRCRAFTID1 = new TEXT(this.STREAMSOURCE1.detailBand)
with (this.STREAMSOURCE1.detailBand.TITLETEXTAIRCRAFTID1)
canRender = {||this.parent.firstOnFrame}
height = 0.15
left = 1.5
width = 1
metric = 3
colorNormal = "BtnText"
alignHorizontal = 1
suppressIfBlank = true
fontSize = 9
fontBold = true
fontUnderline = true
text = "Flight ID"
endwith
this.STREAMSOURCE1.detailBand.VALUEAIRCRAFTID = new TEXT(this.STREAMSOURCE1.detailBand)
with (this.STREAMSOURCE1.detailBand.VALUEAIRCRAFTID)
height = 0.12
left = 1.5
top = 0.2
width = 1
metric = 3
variableHeight = true
colorNormal = "BtnText"
alignHorizontal = 1
fontSize = 9
text = {||this.form.aircraft1.rowset.fields["Flight ID"].value}
borderStyle = 3
endwith
with (this.PAGETEMPLATE1.STREAMFRAME1)
metric = 3
form.STREAMFRAME1 = form.pagetemplate1.streamframe1
endwith
this.PAGETEMPLATE1.TITLE1 = new TEXT(this.PAGETEMPLATE1)
with (this.PAGETEMPLATE1.TITLE1)
height = 0.5
width = 3
metric = 3
colorNormal = "darkblue"
alignVertical = 1
alignHorizontal = 1
fontName = "Times New Roman"
text = "<H1>Schedule by Aircraft</H1>"
borderStyle = 6
form.TITLE1 = form.pagetemplate1.title1
endwith
this.PAGETEMPLATE1.TEXTDATE = new TEXT(this.PAGETEMPLATE1)
with (this.PAGETEMPLATE1.TEXTDATE)
height = 0.25
top = 0.6042
width = 1
metric = 3
colorNormal = "BtnText"
text = {||Date()}
form.TEXTDATE = form.pagetemplate1.textdate
endwith
this.PAGETEMPLATE1.TEXTPAGE = new TEXT(this.PAGETEMPLATE1)
with (this.PAGETEMPLATE1.TEXTPAGE)
height = 0.25
left = 2
top = 0.6042
width = 0.8021
metric = 3
colorNormal = "BtnText"
alignHorizontal = 2
text = {||"Page: " + this.parent.parent.reportPage}
form.TEXTPAGE = form.pagetemplate1.textpage
endwith
this.firstPageTemplate = this.form.pagetemplate1
this.form.pagetemplate1.nextPageTemplate = this.form.pagetemplate1
this.form.pagetemplate1.streamframe1.streamSource = this.form.STREAMSOURCE1
this.form.STREAMSOURCE1.rowset = this.form.aircraft1.rowset
endclass